package com.barber.mapper;

import com.barber.entity.Customer;
import com.barber.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface OrderMapper extends  ParentMapper {
    // 查询数据列表，使用分页参数
    List<Order> selectOrdersByName(@Param("id") int id, @Param("usertype") int usertype, @Param("userid") int userid,@Param("offset") int offset, @Param("limit") int limit);
    boolean update(@RequestParam Order order, @Param("usertype") int usertype);

    // 查询总数
    int selectOrderCountByName(@Param("id") int id);
    Integer checkTime(Order order);

    boolean updateendt(Order order);
}
